
                    <?php $index = 0;?>
                    <?php foreach($data_loaibaos as $loaibao){ ?>     
                    	<tr>
                        	<td colspan="7"><strong><?php echo $loaibao['tenloaibao']?></strong></td>
                        </tr>
                        <?php foreach($data_tinhtrangbao as $ct){ ?>
                        
                        <?php if($ct['loaibaoid'] == $loaibao['loaibaoid']){ ?>
                        <tr>
                        	<td><?php echo $loaibao['tenloaibao']?></td>
                            <td><?php echo $this->document->getKyBao($ct['kybaoid'])?></td>
                            <td><?php echo $this->date->formatMySQLDate($this->document->getKyBao($ct['kybaoid'],'ngayphathanh'))?></td>
                            <td class="number">
                            	<input type="hidden" id="id<?php echo $index?>"  name="id[<?php echo $index?>]" value="<?php echo $ct['id']?>" >
                                <input type="hidden" id="loaibaoid<?php echo $index?>"  name="loaibaoid[<?php echo $index?>]" value="<?php echo $loaibao['loaibaoid']?>" >
                                <input type="hidden" id="kybaoid<?php echo $index?>"  name="kybaoid[<?php echo $index?>]" value="<?php echo $ct['kybaoid']?>" >
                                
                            	<input type="hidden" id="dagiao<?php echo $index?>"  value="<?php echo $ct['tongdagiao']?>" >
                                <input type="hidden" id="datra<?php echo $index?>"  value="<?php echo $ct['tongsoluongtra']?>" >
                            	<input type="text" id="soluong<?php echo $index?>" name="soluong[<?php echo $index?>]" value="<?php echo $ct['soluong']?>" class="text number soluong" ref="<?php echo $index?>">
                                <input type="hidden" id="daphanphoi<?php echo $index?>"  value="<?php echo $ct['daphanphoi']?>" >
                            </td>
                            <td class="number" id="soluongton<?php echo $index?>"><?php echo $this->string->numberFormate($ct['soluongton'])?></td>
                            <td class="number"><?php echo $this->string->numberFormate($ct['tongdagiao'])?></td>
                            <td class="number" id="chitieu<?php echo $index?>"><?php echo $this->string->numberFormate($ct['chitieu'])?></td>
                        </tr>
                        <?php $index++;?>
                        <?php } ?>
                        <?php } ?>
                    <?php } ?>
